package com.yami.shop.security.api.adapter;

import com.yami.shop.security.common.adapter.DefaultAuthConfigAdapter;
import org.springframework.stereotype.Component;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

/**
 * @author FrozenWatermelon
 * @date 2020/7/16
 */
@Component
public class ResourceServerAdapter extends DefaultAuthConfigAdapter {

    @Override
    public List<String> pathPatterns() {
        return Arrays.asList("/p/*","/dtc/*","/wapi/*");
    }

    @Override
    public List<String> excludePathPatterns() {
        return Arrays.asList("/**/ua/**","/p/ScanCodeAirdrop/getScanCodeData");
    }

}
